Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Jazz authentication change from Form to Basic on tomacat

 Hello,

I am trying to change my JTS 4.0  authentication from "Form" to "Basic" on tomcat server ,integrated with LDAP.

If i am correct is these files are enough to change the authentication type

*  1) file path JTS\Server\Tomcat\conf\jts\web.xml  ( comment form type and un comment basic type)

** 2) File path JTS\server\tomcat\conf\Catalina\localhost\jazz.xml ( class name attribute "value")

(or)

*   Is it required to change the same in JTS\Server\Tomcat\conf\ccm\web.xml ....also?

** Is it required to change the same in  JTS\server\tomcat\conf\Catalina\localhost\ccm.xml ( class name attribute "value")?

When i did changes only with the 1 and 2 it given me the basic authentication window but with some initialization errors.

please clarify me on  this topic 

Thank you in advance

Ashwath

0 votes


Accepted answer

Permanent link
If you want CCM to use BASIC auth, then you'll want to modify the ccm files as well.
Ashwath G selected this answer as the correct answer

1 vote

Comments

Thank you Chulindra ...


2 other answers

Permanent link
The comments at the end of this article: https://jazz.net/library/article/75
describe everything that needs to be changed.  I've pasted them below for reference.

Bo Chulindra wrote on September 26, 2012 04:35:37:

Note that if you follow the instructions to configure the server to use BASIC auth, you may see the following warning in Tomcat:

Mar 20, 2012 4:22:55 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Context/Valve} Setting property 'characterEncoding' to 'UTF-8' did not find a matching property

This is can be resolved by removing the characterEncoding attribute from the "Valve" element. After removing the attribute, the element should look like this:

<Valve className="org.apache.catalina.authenticator.BasicAuthenticator"
changeSessionIdOnAuthentication="true"
securePagesWithPragma="false"/>
Ian Wark wrote on October 16, 2012 11:04:40:

We believe it is necessary to do the below to change Tomcat application server to use BASIC authentication. Other settings explained above were not enough. For us, this made it possible to access RTC 3.0.x news feeds from Lotus Notes 8.5 and RSSOwl 2.1.4.

1. Shut down all Jazz servers.
2. Find every occurrence of:

<login-config>
<auth-method>FORM</auth-method>
...
</login-config>
in all files named "web.xml" under
[JazzServerInstallDir]/server/tomcat/webapps and replace it with:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Jazz</realm-name>
</login-config>
The new text should already appear in the file in a comment.

3. Find every occurrence of
"org.apache.catalina.authenticator.FormAuthenticator" in all .xml files
under [JazzServerInstallDir]/server/tomcat and replace it with
"org.apache.catalina.authenticator.BasicAuthenticator".

4. Restart all Jazz servers.

Note that this will change the way Jazz authenticates all web clients as well, not just feeds.


0 votes

Comments

Thank you Ian ...its working fine ...


Permanent link
I should clarify here that the files mentioned in the question aren't correct for JTS 4.0. JTS 4.0 uses Tomcat 7, so there will not be the file

server/tomcat/conf/Catalina/localhost/<appName>.xml

Instead, it will be

server/tomcat/webapps/<appName>/META-INF/context.xml.

The other file to modify is

server/tomcat/webapps/<appName>/WEB-INF/web.xml

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 27 '13, 8:11 a.m.

Question was seen: 7,152 times

Last updated: Feb 01 '13, 3:49 p.m.

Confirmation Cancel Confirm